package cn.lxinet.lxms.system.mapper;

import cn.lxinet.lxms.framework.mybatis.mapper.BaseMapper;
import cn.lxinet.lxms.system.entity.SysDept;
import cn.lxinet.lxms.system.vo.SysDeptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> {

    List<SysDeptVo> list(@Param("name") String name, @Param("parentId") Long parentId, @Param("status") Integer status);

    List<SysDeptVo> simpleList();

    void updatePaths(@Param("id") Long id, @Param("paths") String paths);

    void delSonDept(String paths);

    List<Long> listSonIds(@Param("id") Long id);
}
